<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改催款申请单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-from-edit" th:object="${dunningFrom}">
        <input name="dId" th:field="*{dId}" type="hidden">
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">劳务金额	：</label>
            <div class="col-sm-8">
                <input name="dCost" th:field="*{dCost}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">供应商名称/应付单位名称：</label>
            <div class="col-sm-8">
                <input name="dSupplierName" th:field="*{dSupplierName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请人：</label>
            <div class="col-sm-8">
                <input name="dProposer" th:field="*{dProposer}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请内容：</label>
            <div class="col-sm-8">
                <input name="dApplicationContent" th:field="*{dApplicationContent}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="dCreateTime" th:value="${#dates.format(dunningFrom.dCreateTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                </div>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">总项目关联：</label>
            <div class="col-sm-8">
                <input name="pId" th:field="*{pId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">照片：</label>
            <div class="col-sm-8">
                <input name="dFile" th:field="*{dFile}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">劳务合同：</label>
            <div class="col-sm-8">
                <input name="aLabor" th:field="*{aLabor}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label">申请状态：</label>
            <div class="col-sm-8">
                <div class="radio-box">
                    <select id="aStatus" name="aStatus" th:with="type=${@dict.getType('payment_status')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{aStatus}">
                        </option>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">审批意见：</label>
            <div class="col-sm-8">
                <input name="aOpinion" th:field="*{aOpinion}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "ruoyi/from";
    $("#form-from-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-from-edit').serialize());
        }
    }

    $("input[name='dCreateTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>